import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BusinessListComponent } from './business-list/business-list.component';
import { EmptyComponent } from './empty.component';


const route: Routes = [
  {
    path: 'list',
    component: BusinessListComponent,
  },
 
];

const routes: Routes = [
  ...route,
  {
    path: 'customer/detail',
    children: [
      ...route,
      {
        path: '**',
        component: EmptyComponent,
      },
    ],
  },
  {
    path: 'business',
    children: [
      ...route,
      {
        path: '**',
        component: EmptyComponent,
      },
    ],
  },
  {
    path: '**',
    component: EmptyComponent,
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
